Skip to content

splitting Schema into a base class with a builder and factories - #3895

Merged
pulimsr merged 4 commits into
mainfrom
schema-serde
Aug 19, 2026
Merged

splitting Schema into a base class with a builder and factories#3895
pulimsr merged 4 commits into
mainfrom
schema-serde

Conversation

@pulimsr

@pulimsr pulimsr commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment thread src/aws-cpp-sdk-core/include/smithy/client/schema/Schema.h Outdated
Comment thread src/aws-cpp-sdk-core/include/smithy/client/schema/SchemaBuilder.h
Comment thread src/aws-cpp-sdk-core/source/smithy/client/schema/Schema.cpp Outdated
// element boundaries). Aggregates hand control back through a consumer callback
// so nesting is expressed by re-entrancy rather than begin/end bookkeeping.
//
// smithy-java parameterizes the list/map consumers on a caller-supplied state

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, lets not reference smithy-java directly in here, also in general lets get of overly verbose comments

Aws::Schema::WriteQuotedJsonString(m_buf, value);
void WriteList(const Schema& /*schema*/, size_t, const std::function<void(ShapeSerializer&)>& consumer) override {
if (!OpenContainer('[')) {
return;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does the caller know it error-ed?

m_errorMessage = "Maximum nesting depth exceeded";
return false;
SerializerOutcome GetPayload() {
if (m_finalized || !m_errorMessage.empty()) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhhhhhh on get playload we return the error, i like that

@pulimsr
pulimsr marked this pull request as ready for review August 18, 2026 19:03
@pulimsr
pulimsr added this pull request to the merge queue Aug 19, 2026
Merged via the queue into main with commit 4370ae5 Aug 19, 2026
4 of 6 checks passed
@pulimsr
pulimsr deleted the schema-serde branch August 19, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants